﻿using FluentMigrator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.DbMigrations.V20140524
{

    public class _06_ProjectTypeInit : AutoReversingMigration
    {
        public override void Up()
        {
            var now = DateTime.Now;
            Insert.IntoTable("ProjectType")
                //机械
        .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "加工中心", ProjectTypeDes = "", WorkTypeId = "58d578ad-06b1-4440-b9fd-c6f1b1e0edaf", CreateDate = now, ModifyDate = now, IsDelete = 0 })
        .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "铣床", ProjectTypeDes = "", WorkTypeId = "58d578ad-06b1-4440-b9fd-c6f1b1e0edaf", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                //金属加工         
        .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "电焊", ProjectTypeDes = "", WorkTypeId = "8dc3b0fe-0ac7-4d1f-b7e4-11bf6126c2b1", CreateDate = now, ModifyDate = now, IsDelete = 0 })
        .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "锻造", ProjectTypeDes = "", WorkTypeId = "8dc3b0fe-0ac7-4d1f-b7e4-11bf6126c2b1", CreateDate = now, ModifyDate = now, IsDelete = 0 })
        .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "铸造", ProjectTypeDes = "", WorkTypeId = "8dc3b0fe-0ac7-4d1f-b7e4-11bf6126c2b1", CreateDate = now, ModifyDate = now, IsDelete = 0 })
         .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "电镀", ProjectTypeDes = "", WorkTypeId = "8dc3b0fe-0ac7-4d1f-b7e4-11bf6126c2b1", CreateDate = now, ModifyDate = now, IsDelete = 0 })

         //建筑
                     .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "木工", ProjectTypeDes = "", WorkTypeId = "2af35128-17e8-432c-be55-f6aa95f18c58", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                             .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "瓦工", ProjectTypeDes = "", WorkTypeId = "2af35128-17e8-432c-be55-f6aa95f18c58", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                     .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "钢筋工", ProjectTypeDes = "", WorkTypeId = "2af35128-17e8-432c-be55-f6aa95f18c58", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                     .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "电工", ProjectTypeDes = "", WorkTypeId = "2af35128-17e8-432c-be55-f6aa95f18c58", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                     .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "架子工", ProjectTypeDes = "", WorkTypeId = "2af35128-17e8-432c-be55-f6aa95f18c58", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                //服装加工
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "缝纫", ProjectTypeDes = "", WorkTypeId = "5f286976-3078-47d7-973e-90389470be6b", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "剪裁", ProjectTypeDes = "", WorkTypeId = "5f286976-3078-47d7-973e-90389470be6b", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "熨烫", ProjectTypeDes = "", WorkTypeId = "5f286976-3078-47d7-973e-90389470be6b", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "洗涤", ProjectTypeDes = "", WorkTypeId = "5f286976-3078-47d7-973e-90389470be6b", CreateDate = now, ModifyDate = now, IsDelete = 0 })

         //纺织工
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "细纺", ProjectTypeDes = "", WorkTypeId = "5552ceed-0678-4049-b83f-0938db340c06", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "粗纺", ProjectTypeDes = "", WorkTypeId = "5552ceed-0678-4049-b83f-0938db340c06", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "气流纺", ProjectTypeDes = "", WorkTypeId = "5552ceed-0678-4049-b83f-0938db340c06", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "络筒", ProjectTypeDes = "", WorkTypeId = "5552ceed-0678-4049-b83f-0938db340c06", CreateDate = now, ModifyDate = now, IsDelete = 0 })
                //农林渔牧羊
                                 .Row(new { ProjectTypeId = Guid.NewGuid().ToString(), ProjectTypeName = "放羊", ProjectTypeDes = "", WorkTypeId = "d83b55aa-acbf-4a48-a253-ee12848fa7aa", CreateDate = now, ModifyDate = now, IsDelete = 0 });

        }
    }
}
